package stark.app.function.cartoon;

import com.stark.camera.kit.filter.CameraActivity;
import com.stark.cartoonavatarmaker.lib.ui.AvatarMakeActivity;
import com.stark.cartoonavatarmaker.lib.ui.AvatarTemplateActivity;

import stark.app.R;
import stark.app.base.BaseWithFragmentActivity;
import stark.app.databinding.ActivityCartoonDemoBinding;
import stark.common.basic.base.BaseNoModelActivity;

/**
 * Author：daizhongbin on 2023/4/27
 * Email：1027154338@qq.com
 * Desc:
 */
public class CartoonDemoActivity extends BaseNoModelActivity<ActivityCartoonDemoBinding> {
    @Override
    protected int onCreate() {
        return R.layout.activity_cartoon_demo;
    }

    @Override
    protected void initView() {
        mDataBinding.btnCartoonImg.setOnClickListener(v -> {
            BaseWithFragmentActivity.start(this, "图片动漫化", CartoonImgFragment.class);
        });
        mDataBinding.btnCartoonImg1.setOnClickListener(v -> {
            BaseWithFragmentActivity.start(this, "图片动漫化1", CartoonImgFragment1.class);
        });
        mDataBinding.btnCartoonStyle.setOnClickListener(v -> {
            BaseWithFragmentActivity.start(this, "图片动漫样式化", CartoonStyleImgFragment.class);
        });
        mDataBinding.btnCartoonCamera.setOnClickListener(v -> {
            startActivity(CameraActivity.class);
        });
        mDataBinding.btnAvatarMaker.setOnClickListener(v -> {
            AvatarMakeActivity.start(this, null);
        });
        mDataBinding.btnTemplate.setOnClickListener(v -> {
            startActivity(AvatarTemplateActivity.class);
        });
    }

    @Override
    protected void initData() {
    }
}
